package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.CgthdBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface CgthdService extends BaseService<CgthdBean> {

	CgthdBean getCgthdBeanById(String id) throws Exception;
	
	void removeCgthdBeanById(String id) throws Exception;
	
	void removeCgthdBeanByIds(String ids) throws Exception;
	
	CgthdBean saveCgthdBean(CgthdBean crm) throws Exception;
	
	CgthdBean updateCgthdBean(CgthdBean crm) throws Exception;
	
	Page<CgthdBean>  findCgthdBeanByCond(CgthdBean bean,
			Page<CgthdBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveCgthdBeanExt(String sql) throws Exception;

	String findCgthdBeanExtCreate(String tableName) throws Exception;

	String findCgthdBeanExtEdit(String tableName, String id)
			throws Exception;

	String findCgthdBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasCgthdBeanExtData(String tableName, String id)
			throws Exception;
}